@import url(https://fonts.googleapis.com/css?family=Open+Sans:600,400);
html,
body {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.frame {
  width: 400px;
  height: 400px;
  background-color: #42A7A1;
  border-radius: 2px;
  box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.3);
  font-family: "Open Sans", Helvetica, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  position: relative;
  width: 280px;
  height: 220px;
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.card .header {
  position: relative;
  width: 100%;
  height: 60px;
  background-color: #f1ba64;
  color: #fff;
}
.card .header .big {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  position: absolute;
}
.card .header .small {
  position: absolute;
  font-size: 11px;
  font-weight: 400;
}
.card .header .title {
  left: 15px;
  top: 12px;
}
.card .header .data {
  left: 15px;
  top: 30px;
}
.card .header .type {
  right: 15px;
  top: 12px;
}
.card .header .value {
  right: 15px;
  top: 30px;
}
.card .parameter {
  text-align: right;
  padding: 10px 0 14px 0;
}
.card .parameter span {
  color: #606060;
  font-size: 9px;
  position: relative;
  line-height: 13px;
  padding: 0 10px 0 25px;
}
.card .parameter span::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  display: block;
  width: 11px;
  height: 3px;
  border-radius: 2px;
}
.card .parameter .red::before {
  background-color: #fa7373;
}
.card .parameter .blue::before {
  background-color: #7ba2ff;
}
.card .statistic {
  position: relative;
  width: 260px;
  height: 81px;
  margin: 0 auto;
}
.card .statistic .line-1, .card .statistic .line-3, .card .statistic .line-2 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #f2f2f2;
}
.card .statistic .line-2 {
  top: 40px;
}
.card .statistic .line-3 {
  top: inherit;
  bottom: 0;
}
.card .statistic .data svg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.card .statistic .data polyline {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.card .statistic .data.red polyline {
  stroke: #fa7373;
}
.card .statistic .data.blue polyline {
  stroke: #7ba2ff;
}
.card .statistic .data .tooltip {
  position: absolute;
  bottom: 13px;
  left: 50%;
  transform: translate3d(-50%, 10px, 0);
  font-size: 11px;
  font-weight: 600;
  line-height: 11px;
  padding: 8px 6px;
  border-radius: 3px;
  visibility: hidden;
  opacity: 0;
  transition: transform 0.4s ease-out 0s, opacity 0.4s ease-out 0s;
}
.card .statistic .data .tooltip::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  left: 50%;
  margin-left: -3px;
  bottom: -3px;
  transform: rotate(45deg);
}
.card .statistic .data [class^=point-] {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}
.card .statistic .data [class^=point-]:hover .tooltip {
  visibility: visible;
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}
.card .statistic .data.red [class^=point-], .card .statistic .data.red .tooltip, .card .statistic .data.red .tooltip::after {
  background-color: #fa7373;
}
.card .statistic .data.red .point-1 {
  top: 43px;
  left: 7px;
}
.card .statistic .data.red .point-2 {
  top: 9px;
  left: 47px;
}
.card .statistic .data.red .point-3 {
  top: 20px;
  left: 87px;
}
.card .statistic .data.red .point-4 {
  top: 9px;
  left: 127px;
}
.card .statistic .data.red .point-5 {
  top: 35px;
  left: 167px;
}
.card .statistic .data.red .point-6 {
  top: 45px;
  left: 207px;
}
.card .statistic .data.red .point-7 {
  top: 16px;
  left: 247px;
}
.card .statistic .data.blue [class^=point-], .card .statistic .data.blue .tooltip, .card .statistic .data.blue .tooltip::after {
  background-color: #7ba2ff;
}
.card .statistic .data.blue .point-1 {
  top: 58px;
  left: 7px;
}
.card .statistic .data.blue .point-2 {
  top: 47px;
  left: 47px;
}
.card .statistic .data.blue .point-3 {
  top: 62px;
  left: 87px;
}
.card .statistic .data.blue .point-4 {
  top: 52px;
  left: 127px;
}
.card .statistic .data.blue .point-5 {
  top: 58px;
  left: 167px;
}
.card .statistic .data.blue .point-6 {
  top: 71px;
  left: 207px;
}
.card .statistic .data.blue .point-7 {
  top: 61px;
  left: 247px;
}